
const i18n_base_path = '/static/' + 'idealsee/i18n/';
const lan = 'zh_CN';
const preloadImg = '/static/index/logo1.png?v=018ee';
const from_admin = document.location.search;
console.log(from_admin);
// anti-moth 20160509
if (window.location.search != '') {
  window.onbeforeunload = function (e) {
    $.ajax({
      url: '/admin',
      type: 'GET',
      async: false,
    });
  };
}
const is = {};
is.options = {};
is.options.SITE_URL = 'http://' + 'oltest.yixun.idealsee.com';
is.options.has_3d_widget = 'True' === 'True';
is.options.has_red_packet = 'False' === 'True';
is.options.has_looker_widget = 'False' === 'True';
is.options.has_gold_game = 'False' === 'True';
is.options.editor_type = '1';
if ('True' === 'False') {
  is.options.permission = is.PERMISSION_READONLY || 'PERMISSION_READONLY';
}
is.CONST = {
  resource_picture_id: '5853ae7fd765f90005486e50',
  root_path: '/static/new_version',
  logo_src: '/static/new_version/image/logo.png?v=d15ea',
  resource_type: 0,
  qr_url: 'http://o6zq3p22t.bkt.clouddn.com/ff244ccd0f1e4b75b1313ff311662f5b_png.png',
  media_src: 'http://o6zq3p22t.bkt.clouddn.com/1d8d17171bf5edbf51b6d8a90343eb91_jpg.jpg?imageView2/0/w/480/h/0',
  first_come: 'False' === 'True',
  upload_url: '/web/comupload',
  back_url: 'http://oltest.yixun.idealsee.com/web/resource',
  resource_title: 'asbcdddddd',
  urls: {
    p: '/web/layer/test/indexInit/5853ae7fd765f90005486e50',
    page: '/web/creator/page/5853ae7fd765f90005486e50',
    pages: '/web/creator/pages/5853ae7fd765f90005486e50',
    widgets: '/web/creator/widgets/5853ae7fd765f90005486e50',
    timelines: '/web/creator/timelines/5853ae7fd765f90005486e50',
    widgetTimelines: '/web/creator/all/timelines/5853ae7fd765f90005486e50',
    page_timelines: '/web/page_timelines/5853ae7fd765f90005486e50',
    page_jump: '/web/resource/page/jump/5853ae7fd765f90005486e50',
    colorpicker: '/web/creator/colorpicker',
    gmap: '/web/creator/gmap_new',
    limit: '/web/creator/gmap_limit',
    richtext: '/web/creator/richtext',
    preview: '/web/creator/preview/5853ae7fd765f90005486e50',
    batch_widgets: '/web/creator/batch/widgets/5853ae7fd765f90005486e50',
    layer: '/web/layer/an/index/5853ae7fd765f90005486e50',
    categories: '/web/json/category',
    resources: '/web/json/resources',
    import_other_resource: '/web/creator/import_other_resource/5853ae7fd765f90005486e50',
    import_ar_resource: '/web/creator/import/template/5853ae7fd765f90005486e50',
    get_unity3d_state: '/web/creator/get_unity3d_state',
    permission: '/web/resource/permission',
    template_list: '/web/base/template/list',
    recognize: `/web/layer/recognize/5853ae7fd765f90005486e50${from_admin}`,
    edit_resource: '/web/resource/form/5853ae7fd765f90005486e4f',
    previewQRcode: '/web/creator/previewQRcode/5853ae7fd765f90005486e50',
  },
  font_size: '32pt',
  widget_init_dimensions: {
    width: 60,
    height: 60,
  },
  editor_width: 480,
  editor_height: 497.489878543,
  res_picture_scale: 0.485829959514, // 480和主题图片原始图片宽度的比例
  view: {
    width: 4000,
    height: 4000,
  },
  pages: [{ floating_screen: { switch: 0, md5: '', select_floating: 0, custom: 0 }, title: 1, page_background: { url: 'http://o6zq3p22t.bkt.clouddn.com/1d8d17171bf5edbf51b6d8a90343eb91_jpg.jpg', width: 480, height: 497.49, backgroundColor: 'eaedee', custom: 1 }, floating_pics: ['http://o6zq3p22t.bkt.clouddn.com/afcd55bbe7e7fd66b17e368e613bffe6_png.png', 'http://o6zq3p22t.bkt.clouddn.com/04ca0580cca4ab028330d7b7d70e0c88_png.png', 'http://o6zq3p22t.bkt.clouddn.com/ef5ff316826bdd22c33f659ca77e032e_png.png'], num: 4, auto_turning: 0, turning_delay: 1, page_id: '58a3bc581d737200052591fd', reference_line: {} }, { floating_screen: { switch: 0, md5: '', select_floating: 0, custom: 0 }, title: 2, page_background: { url: 'http://o6zq3p22t.bkt.clouddn.com/1d8d17171bf5edbf51b6d8a90343eb91_jpg.jpg', width: 480, height: 497.49, backgroundColor: 'eaedee', custom: 1 }, floating_pics: ['http://o6zq3p22t.bkt.clouddn.com/afcd55bbe7e7fd66b17e368e613bffe6_png.png', 'http://o6zq3p22t.bkt.clouddn.com/04ca0580cca4ab028330d7b7d70e0c88_png.png', 'http://o6zq3p22t.bkt.clouddn.com/ef5ff316826bdd22c33f659ca77e032e_png.png'], num: 0, auto_turning: 0, turning_delay: 1, page_id: '58a3cc221d7372000525920a', reference_line: {} }, { floating_screen: { switch: 0, md5: '', select_floating: 0, custom: 0 }, title: 3, page_background: { url: 'http://o6zq3p22t.bkt.clouddn.com/1d8d17171bf5edbf51b6d8a90343eb91_jpg.jpg', width: 480, height: 497.49, backgroundColor: 'eaedee', custom: 1 }, floating_pics: ['http://o6zq3p22t.bkt.clouddn.com/afcd55bbe7e7fd66b17e368e613bffe6_png.png', 'http://o6zq3p22t.bkt.clouddn.com/04ca0580cca4ab028330d7b7d70e0c88_png.png', 'http://o6zq3p22t.bkt.clouddn.com/ef5ff316826bdd22c33f659ca77e032e_png.png'], num: 1, auto_turning: 0, turning_delay: 1, page_id: '58a3f4e51d7372000525920f', reference_line: {} }, { floating_screen: { switch: 0, md5: '', select_floating: 0, custom: 0 }, title: 4, page_background: { url: 'http://o6zq3p22t.bkt.clouddn.com/1d8d17171bf5edbf51b6d8a90343eb91_jpg.jpg', width: 480, height: 497.49, backgroundColor: 'eaedee', custom: 1 }, floating_pics: ['http://o6zq3p22t.bkt.clouddn.com/afcd55bbe7e7fd66b17e368e613bffe6_png.png', 'http://o6zq3p22t.bkt.clouddn.com/04ca0580cca4ab028330d7b7d70e0c88_png.png', 'http://o6zq3p22t.bkt.clouddn.com/ef5ff316826bdd22c33f659ca77e032e_png.png'], num: 2, auto_turning: 0, turning_delay: 1, page_id: '58a3f4eb1d73720005259211', reference_line: {} }, { floating_screen: { switch: 0, md5: '', select_floating: 0, custom: 0 }, title: 5, page_background: { url: 'http://o6zq3p22t.bkt.clouddn.com/1d8d17171bf5edbf51b6d8a90343eb91_jpg.jpg', width: 480, height: 497.49, backgroundColor: 'eaedee', custom: 1 }, floating_pics: ['http://o6zq3p22t.bkt.clouddn.com/afcd55bbe7e7fd66b17e368e613bffe6_png.png', 'http://o6zq3p22t.bkt.clouddn.com/04ca0580cca4ab028330d7b7d70e0c88_png.png', 'http://o6zq3p22t.bkt.clouddn.com/ef5ff316826bdd22c33f659ca77e032e_png.png'], num: 1, auto_turning: 0, turning_delay: 1, page_id: '58a3f51c1d73720005259214', reference_line: {} }],
  templates: {
    elements: {
      sidebar_page: '/static/idealsee/js/new_editor/editor/template/pages/sidebar_page.html?v=0db15',
      property: '/static/idealsee/js/new_editor/editor/template/pages/property.html?v=6f9e7',
      text_property: '/static/idealsee/js/new_editor/editor/template/pages/text_property.html?v=07dda',
      graph_property: '/static/idealsee/js/new_editor/editor/template/pages/graph_property.html?v=3bc28',
      widget: '/static/idealsee/js/new_editor/editor/template/elements/widget.html',
      vector: '/static/idealsee/js/new_editor/editor/template/elements/vector.html',
      render_widget: '/static/idealsee/js/new_editor/editor/template/elements/render_widget.html?v=af027',
      render_vector: '/static/idealsee/js/new_editor/editor/template/elements/render_vector.html?v=52e3d',
      used_widget: '/static/idealsee/js/new_editor/editor/template/elements/used_widget.html?v=04d12',
      used_timelines: '/static/idealsee/js/new_editor/editor/template/elements/used_timelines.html?',
      used_timeline_tool: '/static/idealsee/js/new_editor/editor/template/elements/used_timeline_tool.html',
      widget_event: '/static/idealsee/js/new_editor/editor/template/elements/widget_event.html?v=69fda',
      widget_animation: '/static/idealsee/js/new_editor/editor/template/elements/widget_animation.html?v=9e36d',
      upload: '/static/idealsee/js/new_editor/editor/template/elements/upload.html?v=fec59',
// 动画属性
      an_property: '/static/idealsee/js/new_editor/editor/template/elements/an_property.html?v=c8585',
      single_upload: '/static/idealsee/js/new_editor/editor/template/elements/single_upload.html?v=1eb82',
      render_video: '/static/idealsee/js/new_editor/editor/template/elements/render_video.html',
      import_other_resource: '/static/idealsee/js/new_editor/editor/template/elements/import_other_resource.html?v=415a6',
      trigger: '/static/idealsee/js/new_editor/editor/template/elements/trigger.html?v=df13a',
      play_video: '/static/idealsee/js/new_editor/editor/template/elements/play_video.html?v=7340f',
      trigger_widgets_item: '/static/idealsee/js/new_editor/editor/template/elements/trigger_widgets_item.html?v=3879c',
// animation 动画编辑
      animation: '/static/idealsee/js/new_editor/editor/template/elements/animation.html?v=44bca',
      loop_property: '/static/idealsee/js/new_editor/editor/template/elements/loop_property.html?v=62843',
    },
    forms: {
      call_me: '/static/idealsee/js/new_editor/editor/template/forms/callme.html?v=8a056',
      website: '/static/idealsee/js/new_editor/editor/template/forms/website.html?v=23f3a',
      video: '/static/idealsee/js/new_editor/editor/template/forms/video.html?v=49081',
      music: '/static/idealsee/js/new_editor/editor/template/forms/music.html?v=9141c',
      picture: '/static/idealsee/js/new_editor/editor/template/forms/picture.html?v=f7e85',
      album: '/static/idealsee/js/new_editor/editor/template/forms/album.html?v=7e67f',
      geo: '/static/idealsee/js/new_editor/editor/template/forms/geo.html?v=3c57b',
      app_download: '/static/idealsee/js/new_editor/editor/template/forms/app_download.html?v=e8344',
      model_3d: '/static/idealsee/js/new_editor/editor/template/forms/model_3d.html?v=ce154',
      expand: '/static/idealsee/js/new_editor/editor/template/forms/expand.html?v=823a4',
      text: '/static/idealsee/js/new_editor/editor/template/forms/text.html?v=535aa',
      graph: '/static/idealsee/js/new_editor/editor/template/forms/graph.html?v=535aa',
      preview: '/static/idealsee/js/new_editor/editor/template/forms/preview.html?v=b527c', // 预览弹出层
    },
  },
};
